toBufferedImage

Creates an instance of BufferedImage from this Bitmap with the same dimensions.

Since

8.0.0

Throws

if the size of this bitmap is empty.